<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%@ include file="/WEB-INF/jsp/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<LINK rel="stylesheet" type="text/css" href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/jsp/common_css.jsp"%>
<%@ include file="/WEB-INF/jsp/common_js.jsp"%>
<script type="text/javascript">
//修改商品提交
function addItems(){
	//将form的action指向删除商品的地址
	document.itemsForm.action="${pageContext.request.contextPath }/user/addUserView.action";
	
}
</script>
</head>
<body> 
<form name="itemsForm" action="${pageContext.request.contextPath }/user/queryUser.action" method="post">

<table width="100%" border=1>
<div align="center">用户列表</div>
<tr>
<%-- <td>
商品类别：
<select>
	<c:forEach items="${itemsType }" var="item">
			<option value="${item.key }">${item.value }</option>
	
	</c:forEach>
	
</select>
</td> --%>
<td><!-- <input type="submit" value="查询"/> -->
<a href="${baseurl}/user/addUserView.action">
新增
</a>
</td>
</tr>
</table>
<table width="100%" border=1>
<tr>	
	<td>用户名称</td>
	<td>用户电话</td>
	<td>地址</td>
	<td>身份证号</td>
	<td>操作</td>
</tr>
<c:forEach items="${list }" var="item" varStatus="s">
<tr>
	<td><input type="text" name="list[${s.index }].usercode" value="${item.usercode }"/></td>
	<td><input type="text" name="list[${s.index }].customerphone" value="${item.customerphone }"/></td>
	<td><input type="text" name="list[${s.index }].customeraddress" value="${item.customeraddress }"/></td>
	<td>${item.idNum }</td>
	<td><a href="${baseurl}account/managerAccount.action?userId=${item.id}">账户详情</a>
  <a href="${baseurl}user/deleteUser.action?id=${item.id}">删除</a></td>
</tr>
</c:forEach>

</table>
</form>
</body>

</html>